//
//  Section.h
//  NewsReader
//
//  Created by blacksun on 10-10-17.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#define kSection_SectionId			@"sectionId"
#define kSection_SectionName		@"sectionName"
#define kSection_ImageUrl			@"imageUrl"
#define kSection_Summary			@"summary"
#define kSection_LastFeedTitle		@"lastFeedTitle"	
#define kSection_LastFeedImageUrl	@"lastFeedImageUrl"
#define kSection_RefreshDate		@"refreshDate"
#define kSection_CurrentMaxId		@"currentMaxId"
#define kSection_CurrentMinId		@"currentMinId"
#define kSection_OldFeedImage		@"oldFeedImage"
#define kSection_OldFeedTitle		@"oldFeedTitle"
#define kSection_ChildSections      @"childSections"


@interface Section : NSObject<NSCoding>  {
	NSString *sectionId;
	NSString *sectionName;
	NSString *imageUrl;
	NSString *summary;
	NSString *lastFeedTitle;
	NSString *lastFeedImageUrl;
	NSString *oldImageUrl;
	NSString *oldFeedTitle;
	NSString *refreshDate;
	long currentMaxId;
	long currentMinId;
	BOOL leaf;
	NSMutableArray *childSections;
	UIImage *icon;
	BOOL isNewest;

}
@property (nonatomic, copy) NSString *oldImageUrl;
@property (nonatomic, copy) NSString *oldFeedTitle;
@property (nonatomic, copy) NSString *sectionId;
@property (nonatomic, copy) NSString *sectionName;
@property (nonatomic, copy) NSString *imageUrl;
@property (nonatomic, copy) NSString *summary;
@property (nonatomic, copy) NSString *lastFeedTitle;
@property (nonatomic, copy) NSString *lastFeedImageUrl;
@property (nonatomic, copy) NSString *refreshDate;
@property (nonatomic,assign) long currentMaxId;
@property (nonatomic,assign) long currentMinId;
@property (nonatomic,assign) BOOL leaf;
@property (nonatomic,assign) BOOL isNewest;
@property (nonatomic, retain) NSMutableArray *childSections;
@property (nonatomic, retain) UIImage *icon;


@end
